package com.mallcloud.mall.app.service.impl;

import com.mallcloud.mall.app.service.AppAsyncService;
import com.mallcloud.mall.app.service.AppProductService;
import lombok.AllArgsConstructor;
import org.springframework.context.annotation.Lazy;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor(onConstructor = @__(@Lazy))
public class AppAsyncServiceImpl implements AppAsyncService {
    private AppProductService appProductService;

    @Async
    @Override
    public void productDetailStatistics(Long proId, Long uid) {
        // 商品浏览量+1
//        appProductService.addBrowse(proId);
        // 商品浏览量统计(每日/商城)

        // 商品浏览量统计(每日/个体)

        // 保存用户访问记录
    }
}
